package com.minglead.springboot.platform.sys.entity;
import org.hibernate.validator.constraints.Length;

import com.minglead.springboot.common.persistence.DataEntity;

/**
 * 桌面插件配置Entity
 * @author clz
 * @version 2017-09-05
 */
public class DesktopPlugConfig extends DataEntity<DesktopPlugConfig> {
	
	private static final long serialVersionUID = 1L;
	private String roleId;		// 角色id
	private String plugId;		// 插件id
	private Integer sort;		// 排序
	
	
	private String plugIdName;		// 插件名称
	private DesktopPlug  desktopPlug;
	
	public DesktopPlugConfig() {
		super();
	}

	public DesktopPlugConfig(String id){
		super(id);
	}


	

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	@Length(min=1, max=255, message="插件id长度必须介于 1 和 255 之间")
	public String getPlugId() {
		return plugId;
	}

	public void setPlugId(String plugId) {
		this.plugId = plugId;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	

	public String getPlugIdName() {
		return plugIdName;
	}

	public void setPlugIdName(String plugIdName) {
		this.plugIdName = plugIdName;
	}

	@Override
	public String toString() {
		return "DesktopPlugConfig [roleId=" + roleId + ", plugId=" + plugId + "]";
	}

	public DesktopPlug getDesktopPlug() {
		return desktopPlug;
	}

	public void setDesktopPlug(DesktopPlug desktopPlug) {
		this.desktopPlug = desktopPlug;
	}

	

}